Integrand size = 22, antiderivative size = 451 \[ \int x^{3/2} \left (a+b \sec \left (c+d \sqrt {x}\right )\right )^2 \, dx=-\frac {2 i b^2 x^2}{d}+\frac {2}{5} a^2 x^{5/2}-\frac {8 i a b x^2 \arctan \left (e^{i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {8 b^2 x^{3/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}+\frac {16 i a b x^{3/2} \operatorname {PolyLog}\left (2,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {16 i a b x^{3/2} \operatorname {PolyLog}\left (2,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {12 i b^2 x \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {48 a b x \operatorname {PolyLog}\left (3,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {48 a b x \operatorname {PolyLog}\left (3,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {12 b^2 \sqrt {x} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^4}-\frac {96 i a b \sqrt {x} \operatorname {PolyLog}\left (4,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {96 i a b \sqrt {x} \operatorname {PolyLog}\left (4,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {6 i b^2 \operatorname {PolyLog}\left (4,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^5}+\frac {96 a b \operatorname {PolyLog}\left (5,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^5}-\frac {96 a b \operatorname {PolyLog}\left (5,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^5}+\frac {2 b^2 x^2 \tan \left (c+d \sqrt {x}\right )}{d} \]
[Out]
Time = 0.70 (sec) , antiderivative size = 451, normalized size of antiderivative = 1.00, number of steps used = 21, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.455, Rules used = {4289, 4275, 4266, 2611, 6744, 2320, 6724, 4269, 3800, 2221} \[ \int x^{3/2} \left (a+b \sec \left (c+d \sqrt {x}\right )\right )^2 \, dx=\frac {2}{5} a^2 x^{5/2}-\frac {8 i a b x^2 \arctan \left (e^{i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {96 a b \operatorname {PolyLog}\left (5,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^5}-\frac {96 a b \operatorname {PolyLog}\left (5,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^5}-\frac {96 i a b \sqrt {x} \operatorname {PolyLog}\left (4,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {96 i a b \sqrt {x} \operatorname {PolyLog}\left (4,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}-\frac {48 a b x \operatorname {PolyLog}\left (3,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {48 a b x \operatorname {PolyLog}\left (3,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {16 i a b x^{3/2} \operatorname {PolyLog}\left (2,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {16 i a b x^{3/2} \operatorname {PolyLog}\left (2,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}+\frac {6 i b^2 \operatorname {PolyLog}\left (4,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^5}+\frac {12 b^2 \sqrt {x} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^4}-\frac {12 i b^2 x \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {8 b^2 x^{3/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}+\frac {2 b^2 x^2 \tan \left (c+d \sqrt {x}\right )}{d}-\frac {2 i b^2 x^2}{d} \]
[In]
[Out]
Rule 2221
Rule 2320
Rule 2611
Rule 3800
Rule 4266
Rule 4269
Rule 4275
Rule 4289
Rule 6724
Rule 6744
Rubi steps \begin{align*} \text {integral}& = 2 \text {Subst}\left (\int x^4 (a+b \sec (c+d x))^2 \, dx,x,\sqrt {x}\right ) \\ & = 2 \text {Subst}\left (\int \left (a^2 x^4+2 a b x^4 \sec (c+d x)+b^2 x^4 \sec ^2(c+d x)\right ) \, dx,x,\sqrt {x}\right ) \\ & = \frac {2}{5} a^2 x^{5/2}+(4 a b) \text {Subst}\left (\int x^4 \sec (c+d x) \, dx,x,\sqrt {x}\right )+\left (2 b^2\right ) \text {Subst}\left (\int x^4 \sec ^2(c+d x) \, dx,x,\sqrt {x}\right ) \\ & = \frac {2}{5} a^2 x^{5/2}-\frac {8 i a b x^2 \arctan \left (e^{i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {2 b^2 x^2 \tan \left (c+d \sqrt {x}\right )}{d}-\frac {(16 a b) \text {Subst}\left (\int x^3 \log \left (1-i e^{i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d}+\frac {(16 a b) \text {Subst}\left (\int x^3 \log \left (1+i e^{i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d}-\frac {\left (8 b^2\right ) \text {Subst}\left (\int x^3 \tan (c+d x) \, dx,x,\sqrt {x}\right )}{d} \\ & = -\frac {2 i b^2 x^2}{d}+\frac {2}{5} a^2 x^{5/2}-\frac {8 i a b x^2 \arctan \left (e^{i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {16 i a b x^{3/2} \operatorname {PolyLog}\left (2,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {16 i a b x^{3/2} \operatorname {PolyLog}\left (2,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}+\frac {2 b^2 x^2 \tan \left (c+d \sqrt {x}\right )}{d}-\frac {(48 i a b) \text {Subst}\left (\int x^2 \operatorname {PolyLog}\left (2,-i e^{i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^2}+\frac {(48 i a b) \text {Subst}\left (\int x^2 \operatorname {PolyLog}\left (2,i e^{i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^2}+\frac {\left (16 i b^2\right ) \text {Subst}\left (\int \frac {e^{2 i (c+d x)} x^3}{1+e^{2 i (c+d x)}} \, dx,x,\sqrt {x}\right )}{d} \\ & = -\frac {2 i b^2 x^2}{d}+\frac {2}{5} a^2 x^{5/2}-\frac {8 i a b x^2 \arctan \left (e^{i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {8 b^2 x^{3/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}+\frac {16 i a b x^{3/2} \operatorname {PolyLog}\left (2,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {16 i a b x^{3/2} \operatorname {PolyLog}\left (2,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {48 a b x \operatorname {PolyLog}\left (3,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {48 a b x \operatorname {PolyLog}\left (3,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {2 b^2 x^2 \tan \left (c+d \sqrt {x}\right )}{d}+\frac {(96 a b) \text {Subst}\left (\int x \operatorname {PolyLog}\left (3,-i e^{i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^3}-\frac {(96 a b) \text {Subst}\left (\int x \operatorname {PolyLog}\left (3,i e^{i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^3}-\frac {\left (24 b^2\right ) \text {Subst}\left (\int x^2 \log \left (1+e^{2 i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^2} \\ & = -\frac {2 i b^2 x^2}{d}+\frac {2}{5} a^2 x^{5/2}-\frac {8 i a b x^2 \arctan \left (e^{i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {8 b^2 x^{3/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}+\frac {16 i a b x^{3/2} \operatorname {PolyLog}\left (2,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {16 i a b x^{3/2} \operatorname {PolyLog}\left (2,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {12 i b^2 x \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {48 a b x \operatorname {PolyLog}\left (3,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {48 a b x \operatorname {PolyLog}\left (3,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {96 i a b \sqrt {x} \operatorname {PolyLog}\left (4,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {96 i a b \sqrt {x} \operatorname {PolyLog}\left (4,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {2 b^2 x^2 \tan \left (c+d \sqrt {x}\right )}{d}+\frac {(96 i a b) \text {Subst}\left (\int \operatorname {PolyLog}\left (4,-i e^{i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^4}-\frac {(96 i a b) \text {Subst}\left (\int \operatorname {PolyLog}\left (4,i e^{i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^4}+\frac {\left (24 i b^2\right ) \text {Subst}\left (\int x \operatorname {PolyLog}\left (2,-e^{2 i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^3} \\ & = -\frac {2 i b^2 x^2}{d}+\frac {2}{5} a^2 x^{5/2}-\frac {8 i a b x^2 \arctan \left (e^{i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {8 b^2 x^{3/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}+\frac {16 i a b x^{3/2} \operatorname {PolyLog}\left (2,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {16 i a b x^{3/2} \operatorname {PolyLog}\left (2,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {12 i b^2 x \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {48 a b x \operatorname {PolyLog}\left (3,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {48 a b x \operatorname {PolyLog}\left (3,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {12 b^2 \sqrt {x} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^4}-\frac {96 i a b \sqrt {x} \operatorname {PolyLog}\left (4,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {96 i a b \sqrt {x} \operatorname {PolyLog}\left (4,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {2 b^2 x^2 \tan \left (c+d \sqrt {x}\right )}{d}+\frac {(96 a b) \text {Subst}\left (\int \frac {\operatorname {PolyLog}(4,-i x)}{x} \, dx,x,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^5}-\frac {(96 a b) \text {Subst}\left (\int \frac {\operatorname {PolyLog}(4,i x)}{x} \, dx,x,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^5}-\frac {\left (12 b^2\right ) \text {Subst}\left (\int \operatorname {PolyLog}\left (3,-e^{2 i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^4} \\ & = -\frac {2 i b^2 x^2}{d}+\frac {2}{5} a^2 x^{5/2}-\frac {8 i a b x^2 \arctan \left (e^{i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {8 b^2 x^{3/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}+\frac {16 i a b x^{3/2} \operatorname {PolyLog}\left (2,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {16 i a b x^{3/2} \operatorname {PolyLog}\left (2,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {12 i b^2 x \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {48 a b x \operatorname {PolyLog}\left (3,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {48 a b x \operatorname {PolyLog}\left (3,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {12 b^2 \sqrt {x} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^4}-\frac {96 i a b \sqrt {x} \operatorname {PolyLog}\left (4,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {96 i a b \sqrt {x} \operatorname {PolyLog}\left (4,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {96 a b \operatorname {PolyLog}\left (5,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^5}-\frac {96 a b \operatorname {PolyLog}\left (5,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^5}+\frac {2 b^2 x^2 \tan \left (c+d \sqrt {x}\right )}{d}+\frac {\left (6 i b^2\right ) \text {Subst}\left (\int \frac {\operatorname {PolyLog}(3,-x)}{x} \, dx,x,e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^5} \\ & = -\frac {2 i b^2 x^2}{d}+\frac {2}{5} a^2 x^{5/2}-\frac {8 i a b x^2 \arctan \left (e^{i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {8 b^2 x^{3/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}+\frac {16 i a b x^{3/2} \operatorname {PolyLog}\left (2,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {16 i a b x^{3/2} \operatorname {PolyLog}\left (2,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {12 i b^2 x \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {48 a b x \operatorname {PolyLog}\left (3,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {48 a b x \operatorname {PolyLog}\left (3,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {12 b^2 \sqrt {x} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^4}-\frac {96 i a b \sqrt {x} \operatorname {PolyLog}\left (4,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {96 i a b \sqrt {x} \operatorname {PolyLog}\left (4,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {6 i b^2 \operatorname {PolyLog}\left (4,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^5}+\frac {96 a b \operatorname {PolyLog}\left (5,-i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^5}-\frac {96 a b \operatorname {PolyLog}\left (5,i e^{i \left (c+d \sqrt {x}\right )}\right )}{d^5}+\frac {2 b^2 x^2 \tan \left (c+d \sqrt {x}\right )}{d} \\ \end{align*}
Time = 1.49 (sec) , antiderivative size = 443, normalized size of antiderivative = 0.98 \[ \int x^{3/2} \left (a+b \sec \left (c+d \sqrt {x}\right )\right )^2 \, dx=\frac {2 \left (-5 i b^2 d^4 x^2+a^2 d^5 x^{5/2}-20 i a b d^4 x^2 \arctan \left (e^{i \left (c+d \sqrt {x}\right )}\right )+20 b^2 d^3 x^{3/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )+40 i a b d^3 x^{3/2} \operatorname {PolyLog}\left (2,-i e^{i \left (c+d \sqrt {x}\right )}\right )-40 i a b d^3 x^{3/2} \operatorname {PolyLog}\left (2,i e^{i \left (c+d \sqrt {x}\right )}\right )-30 i b^2 d^2 x \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )-120 a b d^2 x \operatorname {PolyLog}\left (3,-i e^{i \left (c+d \sqrt {x}\right )}\right )+120 a b d^2 x \operatorname {PolyLog}\left (3,i e^{i \left (c+d \sqrt {x}\right )}\right )+30 b^2 d \sqrt {x} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )-240 i a b d \sqrt {x} \operatorname {PolyLog}\left (4,-i e^{i \left (c+d \sqrt {x}\right )}\right )+240 i a b d \sqrt {x} \operatorname {PolyLog}\left (4,i e^{i \left (c+d \sqrt {x}\right )}\right )+15 i b^2 \operatorname {PolyLog}\left (4,-e^{2 i \left (c+d \sqrt {x}\right )}\right )+240 a b \operatorname {PolyLog}\left (5,-i e^{i \left (c+d \sqrt {x}\right )}\right )-240 a b \operatorname {PolyLog}\left (5,i e^{i \left (c+d \sqrt {x}\right )}\right )+5 b^2 d^4 x^2 \tan \left (c+d \sqrt {x}\right )\right )}{5 d^5} \]
[In]
[Out]
\[\int x^{\frac {3}{2}} \left (a +b \sec \left (c +d \sqrt {x}\right )\right )^{2}d x\]
[In]
[Out]
\[ \int x^{3/2} \left (a+b \sec \left (c+d \sqrt {x}\right )\right )^2 \, dx=\int { {\left (b \sec \left (d \sqrt {x} + c\right ) + a\right )}^{2} x^{\frac {3}{2}} \,d x } \]
[In]
[Out]
\[ \int x^{3/2} \left (a+b \sec \left (c+d \sqrt {x}\right )\right )^2 \, dx=\int x^{\frac {3}{2}} \left (a + b \sec {\left (c + d \sqrt {x} \right )}\right )^{2}\, dx \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 2869 vs. \(2 (346) = 692\).
Time = 0.54 (sec) , antiderivative size = 2869, normalized size of antiderivative = 6.36 \[ \int x^{3/2} \left (a+b \sec \left (c+d \sqrt {x}\right )\right )^2 \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int x^{3/2} \left (a+b \sec \left (c+d \sqrt {x}\right )\right )^2 \, dx=\int { {\left (b \sec \left (d \sqrt {x} + c\right ) + a\right )}^{2} x^{\frac {3}{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int x^{3/2} \left (a+b \sec \left (c+d \sqrt {x}\right )\right )^2 \, dx=\int x^{3/2}\,{\left (a+\frac {b}{\cos \left (c+d\,\sqrt {x}\right )}\right )}^2 \,d x \]
[In]
[Out]